//
//  ViewController.m
//  UITextViewLessonOne
//
//  Created by lcy on 15/12/26.
//  Copyright © 2015年 lcy. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (strong, nonatomic) UITextView *textView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.textView = [[UITextView alloc] initWithFrame:CGRectMake(50, 50, 100, 50) textContainer:nil];
    
    self.textView.backgroundColor = [UIColor lightGrayColor];
    
    [self.view addSubview:self.textView];
    
    
    //    self.textView.autoresizingMask = YES; // 自适应高度
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
